package com.linkoog.devtools.http.toolwindow.workbenche.foot;

import com.linkoog.devtools.http.toolwindow.workbenche.MessageBoard;

import javax.swing.*;
import java.awt.*;

public class HttpWorkbencheStatusFootPanel extends JPanel implements MessageBoard {

    private JPanel myMainPanel;
    private JLabel leftLabel;
    private JLabel rightLabel;

    public HttpWorkbencheStatusFootPanel() {
        setLayout(new BorderLayout());
        add(myMainPanel, BorderLayout.CENTER);

        leftLabel.setText("");
        rightLabel.setText("强哥出品,必属精品~");
    }

    public void setStatusLabel(String message){
        leftLabel.setText(message);
    }

    @Override
    public void show(String message) {
        leftLabel.setText(message);
    }
}
